<div ng-controller="z-holiday-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
              	<div class="outlet">
	                <div class="panel-body">
	                    <div class="row">
	                    	<div class="col-xs-12 col-sm-10 col-md-11 form-box">
	                    	 <div class="col-sm-6 col-md-4 col-lg-3 form-item">
									<div class="col-sm-5 col-md-5 form-title"><span class="glyphicon glyphicon-import"></span>法定节假日：</div>
									<div class="col-sm-7 col-md-7 form-input">
										<div z-Upload 
											 on-Queue-Complete="importModel.fileUploadComplete(fileUrl)"
					                         upload-Stream="importModel.uploadStream"
					                         token-Url="{{baseUrl}}/upload/uploadToken.do"
					                         upload-Url="{{baseUrl}}/upload/upload.do"
					                         multiple-Files=false></div>
									</div>
								</div>
			                </div>
			            </div>
			            <div class="row">
			            	<!-- <div ng-if="importModel.messageHideType" class="search-range" style="width: 25%;margin: 0 auto;margin-top: 20px;border-radius: 4px;border-color: #ed5565;background: #fff;">
					            <div class="row">
					                <div class="col-md-12">
					                    <div style="background-color: #ed5565;border-color: #ed5565;color: #ffffff;padding: 0px 15px;">
					                        <h3 class="inline">导入错误：</h3>
					                    </div>
					                </div>
					            </div>
					            <div class="row">
					                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="!importModel.isArray">
					                    {{importModel.message}}
					                </div>
					                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="importModel.isArray">
					                    <p ng-repeat="msg in importModel.message">{{msg}}</p>
					                </div>
					            </div>
					        </div> -->
					        <!-- <div ng-if="importModel.successHideType" class="search-range" style="width: 25%;margin: 0 auto;margin-top: 20px;border-radius: 4px;border-color: #1ab394;background: #fff;">
					            <div class="row">
					                <div class="col-md-12">
					                    <div style="background-color: #1ab394;border-color: #1ab394;color: #ffffff;padding: 0px 15px;">
					                        <h3 class="inline">导入成功：</h3>
					                    </div>
					                </div>
					            </div>
						            <div class="row">
						                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="!importModel.isArray">
						                    {{importModel.message}}
						                </div>
						                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="importModel.isArray">
						                    <p ng-repeat="msg in importModel.message">{{msg}}</p>
						                </div>
						            </div>
						        </div> -->
						    </div>
			            <div>
	                </div>
                </div>
				</div>
                <div class="outlet">
	                <div class="panel-body">
	                    <form class="form-horizontal group-border hover-stripped" role="form" name="form">
	                        <div class="row">
	                        	<div class="col-xs-12 col-sm-10 col-md-11 form-box">
	                        	    <div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">年份：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<select name="holidayYear" 
													   ng-model="viewModel.holidayYear" 
													   class="form-control">
												       <option ng-repeat="year in viewModel.yearData" value="{{year}}" ng-selected="viewModel.holidayYear==year">{{year}}</option>
												</select>
											</div>
										</div>
									</div>
									<div class="col-sm-3 col-md-4 col-lg-3 form-item">
										<div class="col-lg-12 col-md-12">
											<button type="button" class="btn btn-success" ng-click="viewModel.rowCount=1;viewModel.bindData()">搜索</button>
		                            		<button class="btn btn-info" ng-click="importModel.getTemplate()" tabIndex="1">模板下载</button> 
			                            </div>
									</div>
								</div>
	                        </div>
	                    </form>
	                </div>
                </div>
				<div class="container-fluid">
					<div class="row">
						<!-- <table class="table table-striped  table-bordered table-hover"> -->
						<table class="table table-striped table-bordered" cellspacing="0" width="100%">
							<thead>
								<tr>
									<th>节假日名称</th>
									<th>年份</th>
									<th>日期</th>
									<th>上班状态</th>
									<th>是否为法定节假日</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="holiday in viewModel.dataList">
									<td>{{holiday.holidayName}}</td>
									<td>{{holiday.holidayYear}}</td>
									<td>{{holiday.holidayDate | date:'yyyy/MM/dd'}}</td>
									<td ng-switch="holiday.isToWork">
										<span ng-switch-when="1">班</span>
										<span ng-switch-when="0">休</span> 
									</td>
									<td ng-switch="holiday.isLegal">
										<span ng-switch-when="1">是</span>
										<span ng-switch-when="0">否</span> 
									</td>
									<td><button type="button" 
												class="btn btn-danger btn-sm" 
												ng-click="importModel.del(holiday)">删除</button></td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row">
						<div z-Pagination total-Data='viewModel.totalData'
							per-Page='viewModel.perPage'
							current-Page='viewModel.rowCount'
							on-Click="viewModel.bindData()"
							on-Change-Per-Page="viewModel.bindData()"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>